<template>
    <primitive :object="scene" />
</template>

<script setup>
import { useGLTF } from '@tresjs/cientos'

// 接收 props
const props = defineProps({
    file: {
        type: String,
        required: true,
    },
});

const { scene, nodes, materials } = await useGLTF(props.file, { draco: true, decoderPath: '/draco/' })

</script>